package com.frcdi.qms.masterdata.domain;

import java.math.BigDecimal;
import com.frcdi.qms.common.annotation.Excel;
import com.frcdi.qms.common.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import lombok.Builder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 步骤执行数据对象 md_step_data
 *
 * @author cell
 * @date 2023-12-19
 */
@ApiModel(value = "步骤执行数据对象")
public class StepData extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long executionDataId;

    /** 方法执行步骤表id */
    @Excel(name = "方法执行步骤表id")
    private Long executionId;

    /** 数据序号 */
    @Excel(name = "数据序号")
    private Integer serialNumber;

    /** 产生的数据 */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @Excel(name = "产生的数据")
    private BigDecimal dataRecord;

    private Long equipment;

    private String range;

    public void setExecutionDataId(Long executionDataId)
    {
        this.executionDataId = executionDataId;
    }

    public Long getExecutionDataId()
    {
        return executionDataId;
    }

    public Long getExecutionId() {
        return executionId;
    }

    public void setExecutionId(Long executionId) {
        this.executionId = executionId;
    }

    public void setSerialNumber(Integer serialNumber)
    {
        this.serialNumber = serialNumber;
    }

    public Integer getSerialNumber()
    {
        return serialNumber;
    }
    public void setDataRecord(BigDecimal dataRecord)
    {
        this.dataRecord = dataRecord;
    }

    public BigDecimal getDataRecord()
    {
        return dataRecord;
    }

    public Long getEquipment() {
        return equipment;
    }

    public void setEquipment(Long equipment) {
        this.equipment = equipment;
    }

    public String getRange() {
        return range;
    }

    public void setRange(String range) {
        this.range = range;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("executionDataId", getExecutionDataId())
            .append("executionId", getExecutionId())
            .append("serialNumber", getSerialNumber())
            .append("dataRecord", getDataRecord())
            .append("equipment", getEquipment())
            .append("range", getRange())
            .toString();
    }
}
